#ifndef TOUCH_H
#define TOUCH_H

#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <time.h>
#include <stdlib.h>
#include <string.h>
#include <linux/fb.h>

#include <linux/input.h>//触摸屏的头文件




class Touch
{
public:

    typedef enum {
        BoardType_BLACK,//黑色屏幕
        BoardType_BLUE,//蓝色屏幕
    }BoardType;

    Touch(BoardType type = BoardType_BLACK);

    int wait(int &rx, int &ry);


private:
    BoardType type;
};

#endif // TOUCH_H
